]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
status/thunderbolt: Actually connect onDestroy callback
authorJonas Dreßler <verdre@v0yd.nl>
Thu, 24 Jul 2025 23:13:03 +0000 (01:13 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 1 Aug 2025 14:29:52 +0000 (16:29 +0200)
Seems this was forgotten in the initial commit adding the new indicator.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3796>
(cherry picked from commit 963fda971fc397dec4d399d1a43f36cde30f84c0)

js/ui/status/thunderbolt.js

index ffe4a08058e4f1bbbf554327026cfe0bd3e0f1ad..f0ee7edf1e834c4b6ed3c5b290a9af9fdabcdae4 100644 (file)
@@ -231,6 +231,8 @@ class Indicator extends SystemIndicator {
         this._robot.connect('enroll-device', this._onEnrollDevice.bind(this));
         this._robot.connect('enroll-failed', this._onEnrollFailed.bind(this));
 
+        this.connect('destroy', () => this._onDestroy());
+
         Main.sessionMode.connect('updated', this._sync.bind(this));
         this._sync();